{{$file := .Get "file"}}

{{- if and (eq (.Get "type") "SECURITY_SCAN") .Site.Params.noSecurityScan -}}
skip reading security scan for file <em>{{ $file }}</em>
<br/>

{{- else -}}

{{$file := .Get "file"}}
{{ if (fileExists $file ) -}}
{{- if eq (.Get "markdown") "true" -}}
{{- $file  | readFile | markdownify -}}
{{- else -}}
{{ $file  | readFile | safeHTML }}
{{- end -}}
{{- end -}}

{{- end -}}